<script src="js/sha1.js"></script>

<div ng-controller='logController'>    
    <form name='login_form' ng-submit='login()' novalidate>
        <fieldset><legend>Login</legend>
            <table>
                <tr>
                    <td>Wechat ID:</td>
                    <td>
                        <input type="text" name="id" ng-model="account.id" />
                    </td>
                </tr>
                <tr>
                    <td>Password:</td>
                    <td>
                        <input type="password" name="passwd" ng-model="account.passwd"/>
                    </td>
                </tr>

                <tr ng-show="!loginResult.succeeded">
                    <td colspan=2>
                        <p style="color:#f00">{{loginResult.msg}}</p>
                    </td>
                </tr>

                <tr>
                    <td colspan="2" align="center">
                        <input type="submit" value="Log in"/>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <!-- <a href="forgot_form.php">Forgot your password?</a> -->
                        <a href="register.php">Not a member?</a>
                    </td> 
                </tr> 
            </table>
        </fieldset>
    </form>
</div>